﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Book.aspx.cs" Inherits="SponsorshipWeb.Book" %>

<!DOCTYPE html>
<html lang="en">
<head>
    <title>宾果高校</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" href="../css/bootstrap.min.css">
    <link rel="stylesheet" href="../css/bootstrap-datetimepicker.min.css">
    <link rel="stylesheet" href="../css/style.css">
    <link rel="stylesheet" href="../css/sweetalert.min.css" />
    <script src="../js/jquery-1.12.2.min.js"></script>
    <script src="../js/validator.min.js"></script>
    <script src="../js/common.js"></script>
    <script src="../js/login.js"></script>
    <script src="../js/bootstrap-datetimepicker.js"></script>
    <script src="../js/bootstrap-datetimepicker.zh-CN.js"></script>
    <script src="../js/sweetalert.min.js"></script>
    <style>
        #divArea label {
            padding: 6px;
        }

        #divType label {
            padding: 6px;
        }

        #divGoods label {
            padding: 6px;
        }
    </style>
</head>
<body>
    <div id="searchPage"></div>
    <div style="margin-top: 20px;" class="main">
        <div class="wrap">
            <div class="panel panel-default">
                <div class="panel-body">
                    <div style="margin: 0 auto; width: 600px;">
                        <form id="formValidate" runat="server" class="form-horizontal">
                            <label>步骤一：填写赞助基本信息</label>
                            <div class="form-group">
                                <asp:TextBox runat="server" ID="txtName" data-error="请填写赞助信息" required class="form-control" placeholder="赞助名称"></asp:TextBox>
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label for="">赞助类型：</label>
                                <div id="divType">
                                    <asp:CheckBoxList runat="server" ID="cbType" RepeatDirection="Horizontal">
                                        <asp:ListItem Value="900000041">文艺类</asp:ListItem>
                                        <asp:ListItem Value="900000042">表演类</asp:ListItem>
                                        <asp:ListItem Value="900000043">晚会类</asp:ListItem>
                                        <asp:ListItem Value="900000044">体育类</asp:ListItem>
                                        <asp:ListItem Value="900000045">讲座类</asp:ListItem>
                                        <asp:ListItem Value="900000047">其它</asp:ListItem>
                                    </asp:CheckBoxList>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="">活动地区：</label>
                                <div id="divArea">
                                    <asp:CheckBoxList runat="server" Width="100%" ID="cbArea" RepeatLayout="Flow" RepeatDirection="Horizontal">
                                        <asp:ListItem Value="0">不限</asp:ListItem>
                                        <asp:ListItem Value="300000">广州市</asp:ListItem>
                                        <asp:ListItem Value="300001">汕头市</asp:ListItem>
                                        <asp:ListItem Value="300002">湛江市</asp:ListItem>
                                        <asp:ListItem Value="300003">潮州市</asp:ListItem>
                                        <asp:ListItem Value="300004">茂名市</asp:ListItem>
                                        <asp:ListItem Value="300005">深圳市</asp:ListItem>
                                        <asp:ListItem Value="300006">韶关市</asp:ListItem>
                                        <asp:ListItem Value="300007">梅州市</asp:ListItem>
                                        <asp:ListItem Value="300008">惠州市</asp:ListItem>
                                        <asp:ListItem Value="300009">东莞市</asp:ListItem>
                                        <asp:ListItem Value="300010">江门市</asp:ListItem>
                                        <asp:ListItem Value="300011">佛山市</asp:ListItem>
                                        <asp:ListItem Value="300012">肇庆市</asp:ListItem>
                                        <asp:ListItem Value="300013">珠海市</asp:ListItem>
                                        <asp:ListItem Value="300014">中山市</asp:ListItem>
                                        <asp:ListItem Value="300015">河源市</asp:ListItem>
                                        <asp:ListItem Value="300016">汕尾市</asp:ListItem>
                                        <asp:ListItem Value="300017">阳江市</asp:ListItem>
                                        <asp:ListItem Value="300018">清远市</asp:ListItem>
                                        <asp:ListItem Value="300019">揭阳市</asp:ListItem>
                                        <asp:ListItem Value="300020">云浮市</asp:ListItem>
                                    </asp:CheckBoxList>
                                </div>

                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <asp:TextBox runat="server" ID="txtMoney" data-error="请填写赞助提供金额" required class="form-control" placeholder="赞助提供金额"></asp:TextBox>
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label>赞助提供物资：</label>
                                <div id="divGoods">
                                    <asp:CheckBoxList runat="server" ID="cbGoods" RepeatDirection="Horizontal">
                                        <asp:ListItem Value="1">公司产品</asp:ListItem>
                                        <asp:ListItem Value="2">传单</asp:ListItem>
                                        <asp:ListItem Value="3">海报</asp:ListItem>
                                    </asp:CheckBoxList>
                                </div>
                            </div>
                            <div class="form-group">
                                <asp:DropDownList runat="server" class="form-control" ID="ddlCount">
                                    <asp:ListItem Selected="True">赞助希望涉及学生总数（人）</asp:ListItem>
                                    <asp:ListItem Value="900000003">0-100</asp:ListItem>
                                    <asp:ListItem Value="900000004">101-300</asp:ListItem>
                                    <asp:ListItem Value="900000005">301-500</asp:ListItem>
                                    <asp:ListItem Value="900000006">501-1000</asp:ListItem>
                                    <asp:ListItem Value="900000007">1001-1500</asp:ListItem>
                                    <asp:ListItem Value="900000008">1501-2500</asp:ListItem>
                                    <asp:ListItem Value="900000009">2501-3000</asp:ListItem>
                                </asp:DropDownList>
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label for="">赞助时间：</label>
                                <asp:TextBox runat="server" ID="txtStartTime" data-error="请填写时间" required Style="display: inline-block; width: 110px;" class="form-control datepick"></asp:TextBox><span> -</span>
                                <asp:TextBox runat="server" ID="txtEndTime" data-error="请填写时间" required Style="display: inline-block; width: 110px;" class="form-control datepick"></asp:TextBox>
                                <div class="help-block with-errors"></div>
                            </div>
                            <label>步骤二：上传活动策划书等附件</label>
                            <div class="form-group">
                                <asp:TextBox runat="server" ID="txtUserName" class="form-control" data-error="请填写活动紧急联系人和电话" required placeholder="活动紧急联系人和电话"></asp:TextBox>
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <asp:HyperLink runat="server" ID="hlBook" Target="_blank"></asp:HyperLink>
                                <br />
                                <label for="">上传方案：</label>
                                <asp:FileUpload ID="fuBook" class="form-control" data-error="请选择上传文件" required runat="server" />
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label for="">方案要求：</label>
                                <asp:TextBox runat="server" TextMode="MultiLine" data-error="请填写方案要求" required ID="txtRemark" Rows="4" class="form-control"></asp:TextBox>
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <asp:TextBox runat="server" placeholder="请填写代理管口令，如果没有请忽略" ID="txtAgent" class="form-control"></asp:TextBox>
                            </div>
                            <div class="form-group text-center">
                                <asp:Button runat="server" ID="btnNext" OnClick="btnNext_Click" class="btn btn-default" OnClientClick="return Go()" Text="提交" />
                                <asp:HiddenField runat="server" ID="hfCompanyID" />
                                <asp:HiddenField runat="server" ID="hfMode" />
                                <asp:HiddenField runat="server" ID="hfUserID" />
                                <asp:HiddenField runat="server" ID="hfProjectID" />
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
<script>

    $("#searchPage").load("header.html", function () {
        SetCss("Book");
    });

    $(function () {
        $('.datepick').datetimepicker({
            format: 'yyyy-mm-dd',
            language: 'zh-CN',
            minView: 2
        });
    });

    function Go() {
        if (!common.validateForm())
            return false;
    }

</script>
